import { defineStore } from 'pinia'


interface AppState {
  client: 'plus' | 'h5'
}

export const useAppStore = defineStore('app', {
  state: (): AppState => ({
   client: 'h5'
  }),
  actions: {
    setClient(client: 'plus' | 'h5') {
      this.client = client;
    }
  },
  persist: {
    paths: ['app'],
    storage: sessionStorage,
  },
})
